package org.zcl.config;

import feign.codec.Decoder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Package org.zcl.config
 * @PROJECT_NAME: question
 * @DESCRIPTION:
 * @USER: zhuchenglin
 * @DATE: 2022/1/26 15:14
 */
@Configuration
public class MyConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public Decoder feignDecoder(){
        return new MyDecoder();
    }
}
